//
//  FocusScale.swift
//  WatermarkCamera
//
//  Created by Python on 2024/7/24.
//

import UIKit

class FocusScale: NSObject {
    
    /// 缩放倍数
    enum Times: CGFloat, CaseIterable {
        case one = 1.0
        case two = 2.0
        case ten = 10.0
    }
    /// 缩放倍数
    var times: Times = .one
    /// 缩放比例
    var scale: CGFloat = 0.0
    /// 是否选中
    var isSelected: Bool = false
    /// 是否显示倍数
    var isShowScale: Bool = false

}

extension FocusScale {
    
    /// 重置焦距倍数
    func reset() {
        scale = times.rawValue
    }
}
